package cn.home.contract.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.contract.mapper.HomeContractUntreatedMapper;
import cn.home.contract.domain.HomeContractUntreated;
import cn.home.contract.service.IHomeContractUntreatedService;

/**
 * 待处理签约Service业务层处理
 * 
 * @author homedoctor
 * @date 2025-04-09
 */
@Service
public class HomeContractUntreatedServiceImpl implements IHomeContractUntreatedService 
{
    @Autowired
    private HomeContractUntreatedMapper homeContractUntreatedMapper;

    /**
     * 查询待处理签约
     * 
     * @param id 待处理签约主键
     * @return 待处理签约
     */
    @Override
    public HomeContractUntreated selectHomeContractUntreatedById(Long id)
    {
        return homeContractUntreatedMapper.selectHomeContractUntreatedById(id);
    }

    @Override
    public List<HomeContractUntreated> getHomeContractUntreated(){
        return homeContractUntreatedMapper.getHomeContractUntreated();
    }

    /**
     * 查询待处理签约列表
     * 
     * @param homeContractUntreated 待处理签约
     * @return 待处理签约
     */
    @Override
    public List<HomeContractUntreated> selectHomeContractUntreatedList(HomeContractUntreated homeContractUntreated)
    {
        return homeContractUntreatedMapper.selectHomeContractUntreatedList(homeContractUntreated);
    }

    /**
     * 新增待处理签约
     * 
     * @param homeContractUntreated 待处理签约
     * @return 结果
     */
    @Override
    public int insertHomeContractUntreated(HomeContractUntreated homeContractUntreated)
    {
        return homeContractUntreatedMapper.insertHomeContractUntreated(homeContractUntreated);
    }

    /**
     * 修改待处理签约
     * 
     * @param homeContractUntreated 待处理签约
     * @return 结果
     */
    @Override
    public int updateHomeContractUntreated(HomeContractUntreated homeContractUntreated)
    {
        return homeContractUntreatedMapper.updateHomeContractUntreated(homeContractUntreated);
    }

    /**
     * 批量删除待处理签约
     * 
     * @param ids 需要删除的待处理签约主键
     * @return 结果
     */
    @Override
    public int deleteHomeContractUntreatedByIds(Long[] ids)
    {
        return homeContractUntreatedMapper.deleteHomeContractUntreatedByIds(ids);
    }

    /**
     * 删除待处理签约信息
     * 
     * @param id 待处理签约主键
     * @return 结果
     */
    @Override
    public int deleteHomeContractUntreatedById(Long id)
    {
        return homeContractUntreatedMapper.deleteHomeContractUntreatedById(id);
    }
}
